package ooday04;
//成员内部类的演示
public class InnerClassDemo {
    public static void main(String[] args) {
        Mother mother = new Mother();
        //Baby b = new Baby();内部类对外不具备可见性
    }
}

class Mother {//外部类
    String name;

    void create() {
        Baby b = new Baby();
    }
    class Baby {//成员内部类

        void show() {
            System.out.println(name);
            System.out.println(Mother.this.name);
        }
    }
}